package com.aqie.appletserver.controller.voice;

import com.aqie.appletserver.bean.VoiceList;
import com.aqie.appletserver.common.response.ResponseModel;
import com.aqie.appletserver.service.IVoiceListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("voice")
public class VoiceController {
    @Autowired
    private IVoiceListService voiceListService;

    @GetMapping("lists")
    public ResponseModel<List<VoiceList>> voiceLists(){
        List<VoiceList> lists = voiceListService.lists();
        return ResponseModel.success(lists);
    }
}
